//
//  Header.h
//  duoduo
//
//  Created by wanghao on 16/10/11.
//  Copyright © 2016年 LX. All rights reserved.
//

#ifndef Header_h
#define Header_h

#import "AppDelegate.h"

#define def    [NSUserDefaults standardUserDefaults]

#define CJFont(a) [UIFont systemFontOfSize:a]

#define appD  ((AppDelegate*)[[UIApplication sharedApplication] delegate])

//屏幕宽高
#define ScreenWidth  [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight   [[UIScreen mainScreen] bounds].size.height

//控制颜色
#define rgb(a,b,c) [UIColor colorWithRed:a/(255*1.0) green:b/(255*1.0) blue:c/(255*1.0) alpha:1]
#define rgbp(a,b,c,p) [UIColor colorWithRed:a/(255*1.0) green:b/(255*1.0) blue:c/(255*1.0) alpha:p]
#define OOKK @"123";
#define CJNavStatusHeight 65
#define CJChatMenberColloctionItemWith (kScreenWidth - 50)/4
#define CJNavColor rgb(61, 162, 247)
#define CJBackColor rgb(240,240,240)
#define LXHexColor(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define NoHeadImage [UIImage imageNamed:@"touxiang"]
#define NoImage [UIImage imageNamed:@"wupianjiazaizhong"]

#define URL(str) [NSString stringWithFormat:@"%@%@",PublickUrl,str]
#define PublickUrl @"http://tss.fcbiz.com/td_duoduo/"
#define ResultJudge  [returnData[@"rcode"] isEqualToString:@"0"]

#define ResultMsg returnData[@"msg"]
#define ShowResultMsg [HUDTool showInView:self.view withText:ResultMsg]

#define FailMsg @"操作失败"
#define ShowFailMsg [HUDTool showInView:self.view withText:FailMsg]

#define ShowSomeMsg(msg) [HUDTool showInView:self.view withText:msg]
#endif /* Header_h */
